package com.gtt.pattern.structural.decorator;

/**
 * Decorator
 * 
 * @author 高甜甜(gao12581@sina.com)
 * @date 2011-3-31
 * 
 */
public abstract class Decorator extends Component {

	protected Component component;

	@Override
	public void draw() {
		if (this.component != null) {
			this.component.draw();
		}
	}

	public void setComponent(Component component) {
		this.component = component;
	}
}
